package com.opal.system.mapper.oracle;

import com.opal.system.entity.BdCustomerForm;
import com.opal.system.entity.table.BdCustomer;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface BdCustomerMapper {

    //查询客户名称总条数
    int findTotal(BdCustomerForm bdCustomer);

    List<BdCustomer> findByNamePage(BdCustomerForm bdCustomer);


    @Select("select name from bd_customer where code=#{code}")
    String selectName(@Param("code") String code);
}